package com.example.gameapplication;


import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

import androidx.annotation.Nullable;

import com.example.gameapplication.database.DataUtils;

public class TrigonometricFunctionView extends View {
    Paint paint;
    float touchx;
    float toucy;
    public TrigonometricFunctionView(Context context) {
        super(context);
    }

    public TrigonometricFunctionView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public TrigonometricFunctionView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        switch (event.getAction()){
            case MotionEvent.ACTION_DOWN:
                break;
            case MotionEvent.ACTION_MOVE:

                invalidate();
                break;
            case MotionEvent.ACTION_UP:
                break;
        }

        return true;

    }
    int i=0;
    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        if (paint==null){
            initPaint();
        }

        i++;




    }

    private void initPaint() {
        paint=new Paint();
        paint.setStrokeWidth(10);
        paint.setStyle(Paint.Style.STROKE);
        paint.setColor(Color.parseColor("#000000"));
    }
}
